package com.example.carproviderbackstage.utils;

import com.example.carinterface.utils.ResultJson;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

import java.util.List;
import java.util.Map;


@Configuration
public class BeanConfig {

    @Bean("mapListResultJson")
    @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
    public ResultJson<List<Map<String, Object>>> getMapListResultJson() {
        return new ResultJson<>();
    }

    @Bean("stringResultJson")
    @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
    public ResultJson<String> getStringResultJson() {
        return new ResultJson<>();
    }
}
